﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine;
using AtomicTypes;
using QLabValues;

namespace NetkovConsoleTestProject
{
    class Program
    {
        static void Main(string[] args)
        {
            Dictionary<string, string> curr=new Dictionary<string,string>(1);
            curr.Add("test", "test");
            
            List<Dictionary<string, string>> path=new List<Dictionary<string,string>>(1);
            /*var  command = "x = plus([13.1 12.1], [16.1 27.1]); y= minus(1.1, 0.5)";
            var command = "x=[1 3 5 7; 5 7 9 11; 10 8 6 4; 1 1 1 1]; a=x([2 4],[1 4],1,1,1,1,1,1,1,1)";
            
            var command =
                @"x1=4.2; 
                  y1=1;
                  switch x1
                    case 1.2+3
                        switch y1
                            case 1
                                z1=12;
                            otherwise
                                z1=15;
                        end
                    case 2
                        z1=20;
                    otherwise
                        z1=40;
                    end;";*/
            /*
            var command = "a=[1 2 3; 4 5 6; 7 8 9]; x=a([1 3;2 2],[1 1; 1 2]);";
            */
            var command = "a=['a','b', 'c'; 's','d','e']";

            EngineManager.Instance.Execute(command, curr, path);
            /*
            var str = new QCharNDimArray(new int[] { 5, 1 });
            str[0, 0] = new QChar('d');
            str[1, 0] = new QChar('a');
            str[2, 0] = new QChar('r');
            str[3, 0] = new QChar('k');
            str[4, 0] = new QChar('o');

            Console.WriteLine(str.ToString());

            var x = new QCharNDimArray(new int[] { 5, 2 });
            x[0, 0] = new QChar('n');
            x[1, 0] = new QChar('e');
            x[2, 0] = new QChar('t');
            x[3, 0] = new QChar('k');
            x[4, 0] = new QChar('o');

            x[0, 1] = new QChar('q');
            x[1, 1] = new QChar('w');
            x[2, 1] = new QChar('e');
            x[3, 1] = new QChar('r');
            x[4, 1] = new QChar('t');
            
            Console.WriteLine(x.ToString());
              */
            Console.ReadKey();
        }
    }
}
